package com.wf.course.dao;

import com.utils.page.PageBean;
import com.wf.course.model.comm.Advertisement;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: liu
 * @Date: 2018/6/12 19:01
 * @Description: 广告管理
 */
public interface IAdvertisementMapper {

    List<Advertisement> list(PageBean<Advertisement> pageBean);

    Integer count(PageBean<Advertisement> pageBean);

    Integer add(Advertisement advertisement);

    Integer update(Advertisement advertisement);

    Integer delete(@Param("id") Integer id);

    Advertisement getAdvertisementById(@Param("id") Integer id);
}
